package com.shengwei.truck.driver.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.shengwei.truck.driver.utils.MyLogFile;
import com.shengwei.truck.driver.view.ui.MainActivity;

public class NotificationClickReceiver extends BroadcastReceiver {
    public static final String CLICK_NOTIFICATION = "NotificationClickReceiver";
    @Override
    public void onReceive(Context context, Intent intent) {
        MyLogFile.i("TAG", "userClick:我被点击啦！！！ ");
        switch(intent.getAction()) {
            case CLICK_NOTIFICATION: {
                    Intent newIntent = new Intent(context, MainActivity.class).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                    context.startActivity(newIntent);
                break;
            }
        }
    }
}